package org.beynet.docs.http;

import java.util.regex.Pattern;

public class GDocsHTTPConstants {
    public static final String loging = "https://www.google.com/accounts/ClientLogin";
    public static final String LIST_MAIN = "https://docs.google.com/feeds/default/private/full";
    public static final String FOLDER_QUERY = "https://docs.google.com/feeds/default/private/full/-/folder";
    public static final String PARENT_REL   = "http://schemas.google.com/docs/2007#parent";
    public static final String NEXT_REL     = "next";
    public static final String SELF_REL     = "self";
    public static final String RESUMABLE_UPDATE_REL_LINK = "http://schemas.google.com/g/2005#resumable-edit-media";
    public static final String RESUMABLE_CREATE_REL_LINK = "http://schemas.google.com/g/2005#resumable-create-media";
    public static final String EDIT_MEDIA_REL_LINK = "edit-media";
    public static final String EDIT_REL_LINK = "edit";
    public static final String FOLDER_URI_PREFIX = "https://docs.google.com/feeds/default/private/full/folder%3A";
    public static final String ROOT_FOLDER = FOLDER_URI_PREFIX+"Aroot";
    public static final String FOLDER_LEVEL1_QUERY = "https://docs.google.com/feeds/default/private/full/folder%3Aroot/contents/-/folder";
    public static final String CONTENT_SUFFIX = "/contents";
    
    public static final String QUERY_TITLE ="title";
    public static final String QUERY_TITLE_EXACT ="title-exact";
    public static final String API_VERSION = "GData-Version";
    public static final String SLUG = "Slug";
    
    public final static Pattern RANGE_PATTERN = Pattern.compile("^bytes=0-(\\d+)$",Pattern.CASE_INSENSITIVE);
}
